#pragma once


#include "CWindow.h"
#include <d3d11.h>
#include <d3dx11.h>
#include <D3Dcompiler.h>

struct SimpleVertex
{
    float x,y,z;
    
};

class CMain
{
public:
	CMain(void);
	~CMain(void);

	int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, PSTR pScmdLine, int iCmdShow);
	void InitD3D11();
	void SetHWND(HWND window);
	void Run();
private:
	HWND hWindow;

	ID3D11Device* m_pDevice;
	ID3D11DeviceContext* m_pDeviceContext;
	IDXGISwapChain* m_pSwapChain;
	ID3D11RenderTargetView* m_pRenderTargetView;

  HRESULT CompileShaderFromFile( WCHAR* szFileName, LPCSTR szEntryPoint, LPCSTR szShaderModel, ID3DBlob** ppBlobOut );
};

